﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>仪器列表视图</title>
<#include "/admin/common_css.ftl">
<#include "/admin/common_js.ftl">
<script type="text/javascript" src="${base}/apache/common/js/jquery.pager.js"></script>
</head>
<body class="list">
	<div class="bar">
		仪器列表&nbsp;总记录数: ${pager.totalCount} (共${pager.pageCount}页)
	</div>
	<div class="body">
		<form id="listForm" action="list" method="post">
			<div class="listBar">
				<label>每页显示: </label>
				<select name="pageSize" id="pageSize">
					<option value="10"<#if pager.pageSize == 10> selected</#if>>
						10
					</option>
					<option value="20"<#if pager.pageSize == 20> selected</#if>>
						20
					</option>
					<option value="50"<#if pager.pageSize == 50> selected</#if>>
						50
					</option>
					<option value="100"<#if pager.pageSize == 100> selected</#if>>
						100
					</option>
				</select>
			</div>
			<table id="listTable" class="listTable">
				<tr>
					<th>
						<a href="#" class="sort" name="classifyId" hidefocus>分类ID</a>
					</th>
					<th>
						<a href="#" class="sort" name="classifyName" hidefocus>分类名称</a>
					</th>
					<th>
						<a href="#" class="sort" name="propertyName" hidefocus>资产名称</a>
					</th>
					<th>
						<a href="#" class="sort" name="useStatus" hidefocus>使用状态</a>
					</th>
					<th>
						<a href="#" class="sort" name="location" hidefocus>存放地点</a>
					</th>
					<th>
						<a href="#" class="sort" name="specificationType" hidefocus>规格型号</a>
					</th>
					<th>
						<a href="#" class="sort" name="deviceFunc" hidefocus>仪器功能</a>
					</th>
					<th>
						<a href="#" class="sort" name="deviceDpt" hidefocus>仪器管理部门</a>
					</th>
					<th>
						<a href="#" class="sort" name="deviceMgr" hidefocus>仪器管理人</a>
					</th>
					<th>
						<a href="#" class="sort" name="metric" hidefocus>测定指标</a>
					</th>
					<th>
						<span>操作</span>
					</th>
				</tr>
				<#list pager.result as deviceInfo>
					<tr>
						<td>
							${deviceInfo.classifyId}
						</td>
						<td>
							${deviceInfo.classifyName}
						</td>
						<td>
							${deviceInfo.propertyName}
						</td>
						<td>
							<#if deviceInfo.useStatus == 1>未使用<#elseif deviceInfo.useStatus == 2>未使用</#if>
						</td>
						<td>
							${deviceInfo.location}
						</td>
						<td>
							${deviceInfo.specificationType}
						</td>
						<td>
							${deviceInfo.deviceFunc}
						</td>
						<td>
							${deviceInfo.deviceDpt}
						</td>
						<td>
							${deviceInfo.deviceMgr}
						</td>
						<td>
							${deviceInfo.metric}
						</td>
						<td>
							<a href="detail?id=${deviceInfo.id}" target="mainFrame" title="详情">[详情]</a>
						</td>
					</tr>
				</#list>
			</table>
			<#if (pager.result?size > 0)>
				<div class="pagerBar">
					<div class="pager">
						<#include "admin/pager.ftl" />
					</div>
				<div>
			<#else>
				<div class="noRecord">没有找到任何记录!</div>
			</#if>
		</form>
	</div>
</body>
</html>